<!--
 * 详情外层包裹层
 * @param <slot />  插槽 可以自定义内容
 * @param title 标题
 * @example  <details-layer :title="`合约信息`">《内容》 </details-layer>
 * @returns {*}
-->
<template>
  <div class="details-layer-wrap">
    <el-tabs v-model="activeName">
      <el-tab-pane :label="title"
                   name="first">
        <div class="layer-content">
          <slot />
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "DetailsLayer",
  props: {
    title: {
      type: String,
      default: "货物信息"
    }
  },
  data () {
    return {
      activeName: "first"
    };
  }
};
</script>

<style scoped>
.details-layer-wrap {
  padding: 20px;
  background-color: var(--prev-bg-white);
}
.layer-content {
  padding: 20px 0 0 0;
}
.details-layer-wrap >>> .is-active {
  font-size: 18px !important;
  color: var(--prev-color-text-ashes);
}
.details-layer-wrap >>> .el-tabs__active-bar {
  height: 3px !important;
  left: 0px !important;
}
.details-layer-wrap >>> .el-tabs__nav-wrap::after {
  height: 3px !important;
}
.details-layer-wrap >>> .el-tabs__item {
  height: 45px !important;
}
</style>
